/**
 * Copyright (C) 2017-2018 pinganfang, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.api.matedata;

import java.util.Map;

/**
 * @author huhailiang937
 * @date 2017年5月17日下午6:27:27
 * @since 1.0.0
 */
public class IndexMeta {

    private String indexName;
    
    private String host;
    
    private int engineType; 
    
    private int shardCount;

    private int replicationFactor;
    
    private FieldMeta pk;

    private FieldMeta versionField;

    private Map<String,FieldMeta> filedMetas;

    /**
     * @return the indexName
     */
    public String getIndexName() {
        return indexName;
    }

    /**
     * @param indexName the indexName to set
     */
    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    /**
     * @return the host
     */
    public String getHost() {
        return host;
    }

    /**
     * @param host the host to set
     */
    public void setHost(String host) {
        this.host = host;
    }

    /**
     * @return the engineType
     */
    public int getEngineType() {
        return engineType;
    }

    /**
     * @param engineType the engineType to set
     */
    public void setEngineType(int engineType) {
        this.engineType = engineType;
    }

    /**
     * @return the filedMetas
     */
    public Map<String, FieldMeta> getFiledMetas() {
        return filedMetas;
    }

    /**
     * @param filedMetas the filedMetas to set
     */
    public void setFiledMetas(Map<String, FieldMeta> filedMetas) {
        this.filedMetas = filedMetas;
    }

    /**
     * @return the shardCount
     */
    public int getShardCount() {
        return shardCount;
    }

    /**
     * @param shardCount the shardCount to set
     */
    public void setShardCount(int shardCount) {
        this.shardCount = shardCount;
    }

    public FieldMeta getPk() {
        return pk;
    }

    public void setPk(FieldMeta pk) {
        this.pk = pk;
    }

    /**
     * @return the replicationFactor
     */
    public int getReplicationFactor() {
        return replicationFactor;
    }

    /**
     * @param replicationFactor the replicationFactor to set
     */
    public void setReplicationFactor(int replicationFactor) {
        this.replicationFactor = replicationFactor;
    }

    public FieldMeta getVersionField() {
        return versionField;
    }

    public void setVersionField(FieldMeta versionField) {
        this.versionField = versionField;
    }
}
